package com.agritech.factory;

public class Harvester implements AgriculturalMachine {
    private String status = "空闲";

    @Override
    public String getType() {
        return "收割机";
    }

    @Override
    public void start() {
        System.out.println("收割机启动");
        this.status = "启动";
    }

    @Override
    public void stop() {
        System.out.println("收割机停止");
        this.status = "停止";
    }

    @Override
    public void work() {
        System.out.println("收割机开始收割作业");
        this.status = "作业中";
    }

    @Override
    public String getStatus() {
        return "收割机当前状态: " + status;
    }
}